![]() |
TextFace |
||||
Header: | QuickdrawText.h | Carbon status: | Supported | |
Sets the style of the font in which the text is to be drawn in the current graphics port.
void TextFace ( StyleParameter face );
The style for text to be drawn in the current graphics port.
The TextFace function sets the value for the style of the font in the text face (txFace) field of the current graphics port. The Style data type allows you to specify a set of one or more of the following predefined constants: bold, italic, underline, outline, shadow, condense, and extend. In Pascal, you specify the constants within square brackets. For example:
TextFace([bold]); {bold}TextFace([bold,italic]); {bold and italic}
The style is set to the empty set ([]) by default, which specifies plain.
To ensure future compatibility and benefit from any enhancements, always use this function to modify the txFace field, rather than directly change the field value.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)